<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">



<ui:composition template="/WEB-INF/templates/defaultLayout.xhtml">

	<!-- Definiendo la cabecera de la pagina -->
	<ui:define name="title">
		<h:outputText value="Trabajador" />
	</ui:define>


	<!-- content -->
	<ui:define name="menu-left">
		<ui:include src="/WEB-INF/menus/submenu.xhtml" />
	</ui:define>


	<!-- Definiendo el cuerpo de la pagina -->
	<ui:define name="content">

		<h:form>
			<h:selectOneMenu value="#{empresaMB.itemSelected}">
				<f:selectItems value="#{empresaMB.items}" var="eMB" itemLabel="#{eMB.modulo}" itemValue="#{eMB.idrol}"/>
			</h:selectOneMenu>


			<table>
				<tr>
					<td>id</td>
					<td><h:inputText value="#{empresaMB.empresa.idempresa}" /></td>
					<td>Rason social</td>
					<td><h:inputText value="#{empresaMB.empresa.razonSocial}" /></td>

				</tr>
				<tr>
					<td>ruc</td>

					<td><h:inputText value="#{empresaMB.empresa.ruc}" /></td>

				</tr>
			</table>

			<h:commandButton value="grabar" action="#{empresaMB.crearEmpresa()}" />
		</h:form>

		<div>
			<div class="buttons">
				<h:form>
					<div class="tiptip">
						<h:commandLink styleClass="button left" title="Nuevo Trabajador"
							onclick="dlgCrearTrabajador.show();return false;">
							<span class="icon icon3"></span>
							<span class="label">Nuevo</span>
						</h:commandLink>
						<h:commandLink action="#" styleClass="button middle"
							title="Editar Trabajador">
							<span class="icon icon145"></span>
							<span class="label">Editar</span>
						</h:commandLink>
						<h:commandLink action="#" styleClass="button right"
							title="Eliminar Trabajador">
							<span class="icon icon186"></span>
							<span class="label">Eliminar</span>
						</h:commandLink>
					</div>
					<div class="dropdown">
						<h:outputLink styleClass="button">
							<span class="icon icon96">&nbsp;</span>
							<span class="label">Otros</span>
							<span class="toggle">&nbsp;</span>
						</h:outputLink>
						<div class="dropdown-slider">
							<h:commandLink action="#" styleClass="ddm">
								<span class="icon icon96">&nbsp;</span>
								<span class="label">Vacaciones</span>
							</h:commandLink>
							<h:commandLink action="#" styleClass="ddm">
								<span class="icon icon96">&nbsp;</span>
								<span class="label">Mas</span>
							</h:commandLink>
							<h:commandLink action="#" styleClass="ddm">
								<span class="icon icon96">&nbsp;</span>
								<span class="label">Mas</span>
							</h:commandLink>
						</div>
						<!-- /.dropdown-slider -->
					</div>
					<!-- /.dropdown -->
				</h:form>
			</div>
		</div>
		<div>
			<div class="buttons">
				<h:form>
					<table>
						<tr>
							<td><h:outputLabel>Buscar:</h:outputLabel></td>
							<td><p:inputText id="txtBuscar" size="80" /> <p:watermark
									value="search for" for="txtBuscar" /></td>
						</tr>
					</table>
				</h:form>
			</div>
		</div>
		<table>
			<tr>
				<td>Campo 1</td>
				<td><p:inputText></p:inputText></td>
			</tr>
			<tr>
				<td>Campo 1</td>
				<td><p:inputText></p:inputText></td>
			</tr>
			<tr>
				<td>Campo 1</td>
				<td><p:inputText></p:inputText></td>
			</tr>
		</table>
		<div>
			<button class="action green">
				<span class="label">Save</span>
			</button>
			<button class="action">
				<span class="label">Cancel</span>
			</button>
		</div>


	</ui:define>
</ui:composition>
</html>
